package com.weicx.wuzhiops.model.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;

/**
 * @author:
 * @date: 2022-12-06 11:03:15
 * @since: 1.0
 */
@ApiModel(value = "用户登录请求")
public class UserLoginRequest {

    @ApiModelProperty(value = "用户名")
    @NotEmpty(message = "用户名不可为空")
    private String username;

    @ApiModelProperty(value = "密码")
    @NotEmpty(message = "密码不可为空")
    private String password;

    @ApiModelProperty(value = "IP")
    private String ip;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    @Override
    public String toString() {
        return "UserLoginRequest{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", ip='" + ip + '\'' +
                '}';
    }
}
